package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.EaiSysUserRole;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLLocalDateTimeTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class EaiSysUserRoleProxy extends AbstractProxyEntity<EaiSysUserRoleProxy, EaiSysUserRole> {

    private static final Class<EaiSysUserRole> entityClass = EaiSysUserRole.class;

    public static final EaiSysUserRoleProxy TABLE = createTable().createEmpty();

    public static EaiSysUserRoleProxy createTable() {
        return new EaiSysUserRoleProxy();
    }

    public EaiSysUserRoleProxy() {
    }

    /**
     * {@link EaiSysUserRole#getRoleId}
     */
    public SQLStringTypeColumn<EaiSysUserRoleProxy> roleId() {
        return getStringTypeColumn("roleId");
    }

    /**
     * {@link EaiSysUserRole#getUserId}
     */
    public SQLStringTypeColumn<EaiSysUserRoleProxy> userId() {
        return getStringTypeColumn("userId");
    }

    /**
     * 创建日期
     * {@link EaiSysUserRole#getCreateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysUserRoleProxy> createDate() {
        return getLocalDateTimeTypeColumn("createDate");
    }

    /**
     * {@link EaiSysUserRole#getCreateUserId}
     */
    public SQLStringTypeColumn<EaiSysUserRoleProxy> createUserId() {
        return getStringTypeColumn("createUserId");
    }

    /**
     * 最后更新的日期
     * {@link EaiSysUserRole#getUpdateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysUserRoleProxy> updateDate() {
        return getLocalDateTimeTypeColumn("updateDate");
    }

    /**
     * {@link EaiSysUserRole#getRemarks}
     */
    public SQLStringTypeColumn<EaiSysUserRoleProxy> remarks() {
        return getStringTypeColumn("remarks");
    }

    @Override
    public Class<EaiSysUserRole> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public EaiSysUserRoleProxyFetcher FETCHER = new EaiSysUserRoleProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class EaiSysUserRoleProxyFetcher extends AbstractFetcher<EaiSysUserRoleProxy, EaiSysUserRole, EaiSysUserRoleProxyFetcher> {

        public EaiSysUserRoleProxyFetcher(EaiSysUserRoleProxy proxy, EaiSysUserRoleProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link EaiSysUserRole#getRoleId}
         */
        public EaiSysUserRoleProxyFetcher roleId() {
            return add(getProxy().roleId());
        }

        /**
         * {@link EaiSysUserRole#getUserId}
         */
        public EaiSysUserRoleProxyFetcher userId() {
            return add(getProxy().userId());
        }

        /**
         * 创建日期
         * {@link EaiSysUserRole#getCreateDate}
         */
        public EaiSysUserRoleProxyFetcher createDate() {
            return add(getProxy().createDate());
        }

        /**
         * {@link EaiSysUserRole#getCreateUserId}
         */
        public EaiSysUserRoleProxyFetcher createUserId() {
            return add(getProxy().createUserId());
        }

        /**
         * 最后更新的日期
         * {@link EaiSysUserRole#getUpdateDate}
         */
        public EaiSysUserRoleProxyFetcher updateDate() {
            return add(getProxy().updateDate());
        }

        /**
         * {@link EaiSysUserRole#getRemarks}
         */
        public EaiSysUserRoleProxyFetcher remarks() {
            return add(getProxy().remarks());
        }

        @Override
        protected EaiSysUserRoleProxyFetcher createFetcher(EaiSysUserRoleProxy cp, AbstractFetcher<EaiSysUserRoleProxy, EaiSysUserRole, EaiSysUserRoleProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new EaiSysUserRoleProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
